/*
 * CommandeEvaluer.h
 *
 *  Created on: 21 dec. 2012
 *      Author: guegan
 */

#include "CommandeEvaluer.h"

CommandeEvaluer* CommandeEvaluer::instance = NULL;

CommandeEvaluer* CommandeEvaluer::getInstance() {
	if (instance == NULL)
		instance = new CommandeEvaluer();
	
	return instance;
}

Commande* CommandeEvaluer::constructeurVirtuel() {
	Commande* com = new CommandeEvaluer();
	
	return com;
}

void CommandeEvaluer::execute() {
	bot->evaluerObstacle();
}

void CommandeEvaluer::desexecute() {
	throw Commande::NonReversibleException();
}

bool CommandeEvaluer::reversible() {
	return false;
}

